<admintpl file="header" />
<style type="text/css">
.pic-list li {
	margin-bottom: 5px;
}
</style>
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:U('Slistadmin/index')}">设备明细</a></li>
			<li class="active"><a href="{:U('Slistadmin/add',array('term'=>empty($term['term_id'])?'':$term['term_id']))}" target="_self">{:L('ADD')}</a></li>
		</ul>
		
			<form method="post" class="form-horizontal js-ajax-form" action="{:U('Slistadmin/add_post')}">
					<fieldset>
						<div class="row">
							<div class="span6">
								<div class="control-group">
									<label class="control-label">{:L('SBLB')}</label>
									<div class="controls">
									<select name="sblb" class="form-control">
										<volist name="gtype" id="vo">
										<option value="{$vo.type_name}">{$vo.type_name}</option>
										</volist>                                 
									</select>
									</div>					
								</div>
							</div>	
							<div class="span6">
								<div class="control-group">
									<label class="control-label">{:L('SYDW')}</label>
									<div class="controls">
									<select name="sydw" class="form-control">
										<if condition="$admin_info.user_nicename eq 'admin'">
										<volist name="gjg" id="vo">
										<option value="{$vo.jg_name}">{$vo.jg_name}</option>
										</volist>
										<else />
										<option value="{$admin_info.user_nicename}" selected="selected">{$admin_info.user_nicename}</option>
										</if>                                 
									</select>
									</div>	
								</div>
							</div>	
						 </div>		
						 <div class="row">
							 <div class="span6">
								<div class="control-group">
									<label class="control-label">{:L('SBXH')}</label>
									<div class="controls">
										<input type="text" name="sbxh">
									</div>
								</div>
							</div>	
							<div class="span6">
								<div class="control-group">
									<label class="control-label">{:L('SBSN')}</label>
									<div class="controls">
										<input type="text" name="sbsn">
									</div>
								</div>
							</div>	
						</div>		
						<div class="row">
							<div class="span6">
								<div class="control-group">
									<label class="control-label">{:L('SBPP')}</label>
									<div class="controls">
										<input type="text" name="sbpp">
									</div>
								</div>
							</div>	
							<div  class="span6">
								<div class="control-group">
									<label class="control-label">{:L('SBYZ')}</label>
									<div class="controls">
										<input type="text" name="sbyz">
									</div>
								</div>
							</div>	
						</div>		
						<!--<div class="row">
							<div class="span6">
								<div class="control-group">
									<label class="control-label">{:L('GZRQ')}</label>
									<div class="controls">
									<input type="text" class="js-date" id="input-gzrq" placeholder="2016-01-01"  name="gzrq">
									</div>
								</div>
							</div>	
							<div class="span6">
								<div class="control-group">
									<label class="control-label">{:L('WHRQ')}</label>
									<div class="controls">
										<input type="text" class="js-date" id="input-whrq"        placeholder="2016-01-01"  name="whrq">
									</div>
								</div>
							</div>	
						</div>-->		
						<div class="row">
							<div class="span6">
								<div class="control-group">
									<label class="control-label">{:L('SBWHR')}</label>
									<div class="controls">
										<input type="text" name="sbwhr">
									</div>
								</div>
							</div>	
							<div class="span6">
								<div class="control-group">
									<label class="control-label">{:L('LYR')}</label>
									<div class="controls">
										<input type="text" name="lyr">
									</div>
								</div>
							</div>	
						</div>		
						<div class="row">
							<div class="span6">
								<div class="control-group">
									<label class="control-label">{:L('SBZT')}</label>
									<div class="controls">
										<select name="sbzt" class="form-control">								
										<option value="正常">正常</option>
										<option value="故障">故障</option> 
										<option value="报废">报废</option>        
										</select>								
									</div>
								</div>
							</div>	
							<div class="span6">
								<div class="control-group">
									<label class="control-label">{:L('CFDD')}</label>
									<div class="controls">
										<input type="text" name="cfdd" placeholder="备注大社或某个分社信息">
									</div>
								</div>
							</div>	
						</div>
						<div class="row">
							<div class="span6">
								<div class="control-group">
									<label class="control-label">IP地址</label>
									<div class="controls">
										<input type="text" name="ipadd" placeholder="有内网IP的设备填上IP">			
									</div>
								</div>
							</div>	
							<div class="span6">
								<div class="control-group">
									<label class="control-label">备注信息</label>
									<div class="controls">
										<input type="text" name="addon" placeholder="其他需要备注的信息">
									</div>
								</div>
							</div>	
						</div>											
					</fieldset>
					<div class="form-actions">
						<button type="submit" class="btn btn-primary js-ajax-submit">{:L('ADD')}</button>
						<a class="btn" href="{:U('Slistadmin/index')}">{:L('BACK')}</a>
					</div>
				</form>
	</div>	
	<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
	
</body>
</html>